package cn.young.javalearning.designpattern.factorypattern.f_abstractfactory;

import cn.young.javalearning.designpattern.factorypattern.bean.f_bean.Apple;
import cn.young.javalearning.designpattern.factorypattern.bean.f_bean.Canned;
import cn.young.javalearning.designpattern.factorypattern.bean.f_bean.Fruit;

public class AbstractFactoryBean implements AbstractFactory {

    @Override
    public Fruit produceFruit() {
        return new Apple();
    }

    @Override
    public Canned produceCanned() {
        return new Canned();
    }
}
